<?php

class Layout extends CI_Controller
{
    public function  __construct()
    {
        parent::__construct();
    }

    public function index()
    {
        $data['pagina'] = 'home';
        $query = $this->db->get('noticia');
        $data['noticias'] = $query->result();
        $this->load->view('template/layout_main', $data);

    }
}